<?php

namespace App\Services\Config;

use App\Repositories\Config\GameRechargeItemRepository;
use Cache;

class GameRechargeItemService
{
    public function __construct(GameRechargeItemRepository $gameRechargeItemRepository)
    {
        $this->gameRechargeItemRepository = $gameRechargeItemRepository;
    }

    public function getItems()
    {
        $condition = [
            'game_id' => session('game_id'),
        ];

        $items = $this->gameRechargeItemRepository->getByCondition($condition);

        return $items;
    }

}